include makefile.rules



all: comp bin

comp:
	make -C src
bin:
	 $(CC) $(FILE_O) -o $(BIN)
	 @cp $(BIN) check
clean:
	rm -f `find . -name "*~"`
	rm -f `find . -name "#*"`
	rm -f `find . -name "*.o"`


distclean: clean
	rm -f `find . -name "*.so"`
	rm -f `find . -name "*.a"`
	rm -f `find . -name "*.tst"`
	rm -f $(TRASH)
	rm -f `find . -name $(BIN)`

dist: distclean
	cd .. && tar -cvjf --exclude .git $(TARBALL) $(FILENAME) && mv $(TARBALL) $(FILENAME)

check:
	@cd check && ./check.pl

distcheck: dist
	tar -xf $(TARBALL)
	cd $(FILENAME) && ./configure && make && make check

.PHONY : check
